package com.library.launcher;

import android.app.Activity;

import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;


/**
 * @author : Zach
 * @desc : Activity跳转封装
 * @date : 2021/11/9 11:24
 */
public final class ActivityLauncher {

    public static Launcher with(Fragment fragment) {
        return with(fragment.getActivity());
    }

    public static Launcher with(android.app.Fragment fragment) {
        return with(fragment.getActivity());
    }

    public static Launcher with(FragmentActivity activity) {
        return new Launcher(activity);
    }

    public static Launcher with(Activity activity) {
        return new Launcher(activity);
    }

}
